package com.cdxy.model.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author: tangy
 * @Date: 2020/3/22 14:08
 */
@Data
@ApiModel
public class ModifyBindPhoneReq extends UserWithLoginReq implements Serializable {

    @ApiModelProperty(value = "需要绑定的手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "验证码不能为空")
    private String code;
}
